ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2024 feature!
Help / WLanguage / WLanguage functions / Communication / Drive functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Downloads a directory and its files from a remote drive to the user's computer.
Example
oOAuth2Param is OAuth2Parameters
oOAuth2Param.ClientID = "client_id"
oOAuth2Param.ClientSecret = "client_secret"
oOAuth2Param.RedirectionURL = "http://localhost:9000/"

oDrive is Drive
oDrive = oDriveConnect(oOAuth2Param)

// Choix du répertoire local
sRépertoire is string
sRépertoire = fSelectDir(fExeDir(), "Répertoire local où récupérer le répertoire")

// Récupère le répertoire
IF oDrive.RécupèreRépertoire("/MesPhotos", sRépertoire) = False THEN
Error("Impossible de récupérer le répertoire demandé", ErrorInfo())
RETURN
END
Syntax
<Result> = <Drive>.DownloadDirectory(<Directory to download> , <Local directory>)
<Result>: Boolean
  • if the directory and its files have been downloaded,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Drive>: Drive or gglDrive variable
Name of the Drive or gglDrive variable that corresponds to the drive to be used. The connection to the drive must have been previously established. Otherwise, the directory is not downloaded.
<Directory to download>: Character string
Absolute path of the directory to be downloaded from the remote drive. If this parameter does not correspond to a valid path, the directory will not be downloaded.
<Local directory>: Character string
Absolute path of the directory to be saved on the local computer. If this parameter does not correspond to a valid path, or if a directory with the same name already exists, the directory will not be downloaded.
Remarks
The downloaded directory and its files are no longer linked to the drive. No changes made to the directory or to its files on the remote drive will be reflected on the downloaded version (and vice versa).
Business / UI classification: Business Logic
Component: wd290ggl.dll
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/10/2024

Send a report | Local help